package com.ycMc.mapper;

import com.ycMc.domain.MoneyRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by libo2 on 2017/8/15.
 */
@Repository
public interface MoneyRecordMapper {

    public void insert(MoneyRecord moneyRecord);

    public void update(MoneyRecord moneyRecord);

    public void delete(@Param("moneyRecordId")String moneyRecordId);

    public List<MoneyRecord> select(@Param("userId")String userId,
                                    @Param("tradeType")String tradeType,
                                    @Param("operatorId")String operatorId,
                                    @Param("payMethod")String payMethod,
                                    @Param("payId")String payId,
                                    @Param("orderId")String orderId,
                                    @Param("moneyRecordId")String moneyRecordId,
                                    @Param("offset")int offset,@Param("pageSize")int pageSize);

    public MoneyRecord selectOne(@Param("moneyRecordId")String moneyRecordId);

    public List<MoneyRecord> query(@Param("queryKeyword")String queryKeyword,
                                   @Param("userId")String userId,
                                   @Param("tradeType")String tradeType,
                                   @Param("payMethod")String payMethod,
                                   @Param("offset")int offset,@Param("pageSize")int pageSize,
                                   @Param("startTime")long startTime,@Param("endTime")long endTime
                                   );
}
